package com.flyee.model.item
{
	import com.flyee.controller.tools.cartoon.temp.ChangeEquipConfig;
	
	public class EquipItem
	{
		private var _shareDeport:String = null;
		private var _partList:Array = null;
		private var _name:String = null;
		private var _partID:Number = -1;
		[Bindable]
		private var _icon:String = null;
		public function EquipItem()
		{
		}
		/**
		 * 
		 * @param part
		 * @param shareDeport
		 * 
		 */		
		public function setData(part:uint,shareDeport:String,icon:String,name:String = null):void
		{
			this._partList = ChangeEquipConfig.getPartByPartID(part)
			this._shareDeport = shareDeport;
			this._name = name;
			this._partID = part;
			this._icon = icon;
		}
		public function get shareDeport():String
		{
			return this._shareDeport
		}
		public function get partList():Array
		{
			return this._partList;
		}
		public function get name():String
		{
			return this._name;
		}
		public function get partID():Number
		{
			return this._partID;
		}
		[Bindable]
		public function get icon():String
		{
			return this._icon;
		}
		public function set icon(t:String):void
		{
			this._icon = t;
		}
	}
}